﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace JukeboxParty
{
    public partial class VotingOption : UserControl
    {
        private Song _song;
        public Song SongOption
        {
            get { return this._song; }
            set { this._SetSong(value); }
        }

        public VotingOption()
        {
            InitializeComponent();
        }

        private void _SetSong(Song song)
        {
            this._song = song;

            this.SongName.Text = song.Name;
            this.AlbumName.Text = song.SongAlbum.Name;
            this.ArtistName.Text = song.SongArtist.Name;
        }
    }
}
